<div id="icon-customers-manager" class="icon32"><br></div>
<h2>编辑客户</h2>
<div id="poststuff">
<?php echo $this->Form->create('Customer', array('type' => 'file')); ?>
<?php echo $this->Form->input('id', array('type'=>'hidden')); ?>
<div id="post-body" class="metabox-holder columns-2">
<div id="post-body-content">
    <div id="namediv" class="stuffbox">
        <h3><label for="customer_name">名称</label></h3>
        <div class="inside">
            <?php echo $this->Form->input('customer_name', array('label'=>false, 'div'=>false, 'size'=>30)); ?>
            <p>例如：好用的博客软件</p>
        </div>
    </div>

    <div id="descriptiondiv" class="stuffbox">
        <h3><label for="customer_description">描述</label></h3>
        <div class="inside">
            <?php echo $this->Form->input('customer_description', array('label'=>false, 'div'=>false, 'size'=>30, 'class'=>'code')); ?>
            <p>通常，当访客将鼠标光标悬停在链接表链接的上方时，它会显示出来。根据主题的不同，也可能显示在链接下方。</p>
        </div>
    </div>
</div><!-- /post-body-content -->

<div id="postbox-container-2" class="postbox-container">
    <div id="normal-sortables" class="meta-box-sortables ui-sortable">

        <div id="linkadvanceddiv" class="postbox ">
            <h3 class="hndle"><span>高级</span></h3>
            <div class="inside">
                <table class="links-table" cellpadding="0", style="font-size:12px">
                    <tbody>
                        <tr>
                            <th scope="row"><label for="customer_image">图像地址</label></th>
                            <td><?php echo $this->Form->input('customer_image', array('type'=>'file','label'=>false, 'div'=>false, 'size'=>30, 'class'=>'code')); ?> 88x31 <br/>
                            <?php echo $this->Html->image('/'.$this->Form->data['Customer']['customer_image']); ?>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row"><label for="customer_notes">备注</label></th>
                            <td><?php echo $this->Form->textarea('customer_notes', array('rows'=>10));?></td>
                        </tr>
                        <tr>
                            <th scope="row"><label for="customer_priority">优先级</label></th>
                            <td><?php echo $this->Form->input('customer_priority', array('label'=>false, 'type'=>'number', 'default'=>0));?></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div id="advanced-sortables" class="meta-box-sortables ui-sortable"></div>
</div>
<?php echo $this->Form->end(array('label'=>'保存', 'class'=>'button-primary'));?>
</div>
</div>
